<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pGrid.jsp" %>
<title>工程延期统计</title>
<script>
	$(function(){
		var param = {pNo: '${param.pNo}',pNo_searchType:'eq'};
		/*列表初始化*/
		var gridParam = {
			url:'/console/com.fs.jzzn.pojo.Postpone/list',
			sort:'createTime',
			order:'desc',
			columns: [[ 
				{field: 'pNo', title: '路段编号', width: 180}
			    	 ,{field: 'changeDate', title: '调整日期', width: 120}
			    	 ,{field: 'overDate', title: '调整后工期', width: 120}
			    	 ,{field: 'remark', title: '调整原因', width: 180}
			    	 ,{field: 'department', title: '关联项目部', width: 120}
			    	 ,{field : 'createTime',title: '创建时间',width : 130}
					,{field : 'createrName',title: '创建人',width : 130}
			]],
			queryParams: param,
			onLoadSuccess:function(data){
				//p.total({tip:'合计:', tipName:'pNo', fields:[{name:'money',total:'sum',tip:'合计:'}] });
			},
			singleSelect : true
		};
		p.dataGrid = $(p.dataGrid).datagrid( $.extend({}, p.dataGridParam, gridParam));

		/*事件响应*/
		$("#toolbar .easyui-linkbutton").on("click", function() {
			var motion_code = $(this).attr("motion_code");p.btnOneClick($(this));
			switch (motion_code) {
				case "05":
					p.gridQuery();
					break;
				case "07":
					p.down({filename:'工程延期导出',url:'/console/trace/export',local:true });
					break;
				default:
					break;
			}
		});
	});
</script>
</head>
<body>
		<div id="toolbar" style="padding:3px;">
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" motion_code="05">刷新</a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-excel" plain="true" motion_code="07">导出</a>
		</div>
		<!-- 表格 -->
		<table id="dataGrid" style="height:100%;"></table>
</body>
</html>